package com.selfdriving.wl.activity;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import com.selfdriving.BaseApplication;
import com.selfdriving.R;

public class AboutMe
{
	/** 当前View **/
	View view;
	Context context;

	BaseApplication application;

	private OnClickListener onClickListener;

	private RelativeLayout rlAttention;

	private RelativeLayout rlMyAttention;

	private RelativeLayout rlMyfriend;

	private RelativeLayout rlMySetting;

	private RelativeLayout MyComment;

	public AboutMe(BaseApplication application, Context context,
			OnClickListener onClickListener)
	{
		LayoutInflater inflater = LayoutInflater.from(context);
		view = inflater.inflate(R.layout.w_activity_about_me, null);
		this.application = application;
		this.context = context;
		this.onClickListener = onClickListener;
		initViews();
	}

	public void initViews()
	{
		rlAttention = (RelativeLayout) view.findViewById(R.id.rlAttention);

		rlMyAttention = (RelativeLayout) view.findViewById(R.id.rlMyAttention);

		rlMyfriend = (RelativeLayout) view.findViewById(R.id.rlMyfriend);

		rlMySetting = (RelativeLayout) view.findViewById(R.id.rlMySetting);

		MyComment = (RelativeLayout) view.findViewById(R.id.myComment);

		rlAttention.setOnClickListener(onClickListener);

		rlMyAttention.setOnClickListener(onClickListener);

		rlMyfriend.setOnClickListener(onClickListener);

		rlMySetting.setOnClickListener(onClickListener);

		MyComment.setOnClickListener(onClickListener);
	}

	public View getView()
	{
		return view;
	}
}
